package com.itlong.cloud.operate.resource;

import com.itlong.cloud.POJO.DTO.operate.OperateAnalyseListDTO;
import com.itlong.cloud.operate.service.IOperateAnalyseService;
import com.itlong.cloud.project.operate.IOperateAnalyseServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <desc>
 *      运营-收缴率分析业务处理暴露接口实现类
 * </desc>
 *
 * @createDate 2019/06/03
 */
@RestController
public class OperateAnalyseServiceResource implements IOperateAnalyseServiceClient{

    @Autowired
    IOperateAnalyseService iOperateAnalyseService;

    /**
     * <desc>
     *      分页列表
     * </desc>
     *
     * @param dto
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/03
     */
    @PostMapping("/operate/propertyValue/analyse/list")
    @Override
    public Map<String,Object> list(@RequestBody OperateAnalyseListDTO dto) throws Exception {
        return iOperateAnalyseService.list(dto);
    }
}
